package adkr

import "sync"

// Dealer validation registry: marks dealers whose ACSS output passed
// Merkle re-verify and Pedersen commitment checks locally.

var (
    dealerValidMu sync.RWMutex
    dealerValid   = make(map[int]struct{})
)

func RegisterDealerValid(dealerID int) {
    dealerValidMu.Lock()
    dealerValid[dealerID] = struct{}{}
    dealerValidMu.Unlock()
}

func IsDealerValid(dealerID int) bool {
    dealerValidMu.RLock()
    _, ok := dealerValid[dealerID]
    dealerValidMu.RUnlock()
    return ok
}






